package com.study.config;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/7 10:37 下午
 */

@Component
public class MyBean {

    @Scheduled(cron = "0/1 * * * * ?")
    public void print() {
        System.out.println(Thread.currentThread().getName() +  "spring task run");
    }
}
